<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('attraction_user_tourist_info', function (Blueprint $table) {
            $table->comment('游客信息表');
            $table->bigIncrements('id');
            $table->integer('user_id')->nullable(false)->comment('所属用户id');
            $table->string('name')->nullable(false)->comment('游客姓名');
            $table->string('phone')->comment('游客手机号');
            $table->string('id_card')->comment('游客身份证');
            $table->datetimes();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('attraction_user_tourist_info');
    }
};
